package com.infoauto.opc.gateway.dao;

import com.infoauto.opc.gateway.model.condition.EquipmentAbnormalCondition;
import com.infoauto.opc.gateway.model.gtm4.EquipmentAbnormal;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 设备异常
 */
public interface EquipmentAbnormalDao {
    int insert(EquipmentAbnormal equipmentAbnormal);

    int update(EquipmentAbnormal equipmentAbnormal);

    List<EquipmentAbnormal> selectByStates( @Param("states") Integer states);
    //查询五条最新的设备异常的记录
    List<EquipmentAbnormal> selectEquipmentAbnormal();

    List<EquipmentAbnormal> selectPlcAdrrAndRemoveTime(@Param("plcAdrr") String plcAdrr);
    //查询设备异常履历2列表
    List<EquipmentAbnormal> selectEquipmentAbnormalList2(EquipmentAbnormalCondition equipmentAbnormalCondition);

}
